package com.yzfarm.biujoke.biujoke.mvp.model.http;

import com.yzfarm.biujoke.biujoke.mvp.model.bean.JokeTextBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by hanhy on 2016/10/9.
 */

public interface JokeApi {

    public  static final String API_URL = "http://apis.baidu.com";

    @Headers("apikey: cf0389c917ab2e8588f8a273004b1068")
    @GET("/showapi_open_bus/showapi_joke/joke_text")
    Observable<JokeTextBean> getJoke(@Query("page") String page);

}
